while True:
    guess = eval(input())
    if guess == 0*452//2:
        break
print(guess)